package com.example.entity.mysql;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源ID")
    @TableId(value = "resourceId", type = IdType.AUTO)
    private Integer resourceid;

    @ApiModelProperty(value = "工厂ID")
    @TableField("factoryId")
    private Integer factoryId;

    @ApiModelProperty(value = "资源组ID")
    @TableField("resourceGroupId")
    private Integer resourceGroupId;

    @ApiModelProperty(value = "用来打通resourcegroup.和resourcegroup中的末级一一对应")
    @TableField("resourceGroupIdIsF")
    private Integer resourceGroupIdIsF;

    /**
     * 如果资源组ID为空的时候，用来确定这个资源是属于生产线还是设备界面添加的。
     * 1设备  2生产线  3模具  4工装
     */
    @ApiModelProperty(value = "资源类型")
    @TableField(value = "resourceType")
    private Integer resourceType;

    /**
     * 固定资产编号
     */
    @ApiModelProperty(value = "资产号码(资产编号)")
    @TableField("fixedAssetId")
    private String fixedassetid;

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    @TableField("deviceId")
    private String deviceid;

    /**
     * 出厂编号
     */
    @ApiModelProperty(value = "出厂编号")
    @TableField("SN")
    private String SN;

    /**
     * 设备类别
     */
    @TableField("deviceType")
    private String devicetype;

    /**
     * 设备型号
     */
    @ApiModelProperty(value = "设备型号")
    @TableField("deviceModel")
    private String devicemodel;

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称")
    @TableField("deviceName")
    private String devicename;

    /**
     * 规格
     */
    @ApiModelProperty(value = "规格(模具规格)")
    private String specification;

    /**
     * 主附件
     */
    @TableField("mainAccessory")
    private String mainaccessory;

    /**
     * 主件编号
     */
    @TableField("mainPartId")
    private String mainpartid;

    /**
     * 工作中心
     */
    @ApiModelProperty(value = "工作中心")
    @TableField("workCenter")
    private String workCenter;

    /**
     * 制造商
     */
    @ApiModelProperty(value = "制造商")
    private String manufacturer;

    /**
     * 有效年限
     */
    @ApiModelProperty(value = "有效年限")
    @TableField("validityPeriod")
    private String validityperiod;

    /**
     * 出厂日期
     */
    @ApiModelProperty(value = "出厂日期")
    @TableField("exfactoryDate")
    private String exfactorydate;

    /**
     * 投产日期
     */
    @TableField("startProductionDate")
    private String startproductiondate;

    /**
     * ABC类别
     */
    @TableField("ABCcategories")
    private String abccategories;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 使用部门
     */
    @ApiModelProperty(value = "使用部门")
    @TableField("useDepartment")
    private String usedepartment;

    /**
     * 保管人
     */
    private String custodian;

    /**
     * 使用地点
     */
    @TableField("userPlace")
    private String userplace;

    /**
     * 设备状态
     */
    @TableField("deviceStatus")
    private String devicestatus;

    /**
     * 每日标准运行量
     */
    @TableField("dailyStdoperateVolume")
    private String dailystdoperatevolume;

    /**
     * 运行量单位
     */
    @TableField("operateVolumeUnit")
    private String operatevolumeunit;

    /**
     * 累计运行量
     */
    @TableField("cumulativeOperateVolume")
    private String cumulativeoperatevolume;

    /**
     * 安装地点
     */
    @TableField("installationLocation")
    private String installationlocation;

    /**
     * 安装完工时间
     */
    @TableField("installationCompletionTime")
    private String installationcompletiontime;

    /**
     * 交接日期
     */
    @TableField("handoverDate")
    private String handoverdate;

    /**
     * 安装负责人
     */
    @TableField("installationManager")
    private String installationmanager;

    /**
     * 设备安装情况
     */
    @TableField("equipmentInstallationStatus")
    private String equipmentinstallationstatus;

    /**
     * 验收人员
     */
    @TableField("acceptancePersonnel")
    private String acceptancepersonnel;

    @ApiModelProperty(value = "是否为固定线，不是则为变动线 (1为固定线，0为变动线)")
    @TableField("fixedLine")
    private Integer fixedLine;

    @ApiModelProperty(value = "保养周期")
    @TableField("maintenanceCycle")
    private String maintenanceCycle;

    @ApiModelProperty(value = "小保养周期")
    @TableField("smallMaintenanceCycle")
    private String smallMaintenanceCycle;

    @ApiModelProperty(value = "模具图号(易飛系统模具圆號, 资源组编号)")
    @TableField("mouldDrawNo")
    private String mouldDrawNo;

    @ApiModelProperty(value = "模穴数")
    @TableField("cavityNumber")
    private Integer cavityNumber;

    @ApiModelProperty(value = "模穴规格")
    @TableField("cavitySpecifications")
    private String cavitySpecifications;

    @ApiModelProperty(value = "设计寿命（模）")
    @TableField("designLife")
    private String designLife;

    @ApiModelProperty(value = "模具已使用次数")
    @TableField("usedNumber")
    private String usedNumber;

    @ApiModelProperty(value = "所属单位")
    @TableField("affiliation")
    private String affiliation;

    @ApiModelProperty(value = "状态（1.可用闲置中 ,  2.加工中    3.维修中   4.保养中  Y:已报废  S.待装机刚买回）")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "MOCTY的UUID")
    @TableField("moctyudf05")
    private String moctyudf05;

    @ApiModelProperty(value = "机台状态变化的时间")
    @TableField("changeTime")
    private String changeTime;

    @ApiModelProperty(value = "上一次巡检单生成时间(如果之前没有巡检单，则按上机时间来)")
    @TableField("inspectionTime")
    private String inspectionTime;

    @ApiModelProperty(value = "MOCTY第几次上机")
    @TableField("orderNum")
    private Integer orderNum;

    @ApiModelProperty(value = "在上机中的工作人员编号")
    @TableField("workPersonId")
    private String workPersonId;

    @ApiModelProperty(value = "在上机中的工作人员名称")
    @TableField("workPersonName")
    private String workPersonName;

    @ApiModelProperty(value = "工作人员上机时间")
    @TableField("workPersonTime")
    private String workPersonTime;

    @ApiModelProperty(value = "签到签退UUID")
    @TableField("qiandaoUuid")
    private String qiandaouuid;

    @ApiModelProperty(value = "上模时间")
    @TableField("macOnTime")
    private String macOnTime;

    @ApiModelProperty(value = "下模时间")
    @TableField("macOutTime")
    private String macOutTime;

    @ApiModelProperty(value = "进站时间")
    @TableField("jinzhanTime")
    private String jinzhanTime;

    @ApiModelProperty(value = "进站UUID")
    @TableField("jinzhanUuid")
    private String jinzhanUuid;

    @ApiModelProperty(value = "保养时间")
    @TableField("maintainTime")
    private String maintainTime;

    @ApiModelProperty(value = "存储位置")
    @TableField("storageLocation")
    private String storageLocation;

    @ApiModelProperty(value = "工厂模具图纸编号")
    @TableField("factoryMouldDrawingNumber")
    private String factoryMouldDrawingNumber;

    @ApiModelProperty(value = "工厂模具图纸版次")
    @TableField("factoryMouldDrawingVersion")
    private String factoryMouldDrawingVersion;
    @ApiModelProperty(value = "客户/厂商模具图纸编号")
    @TableField("customMouldDrawingNumber")
    private String customMouldDrawingNumber;
    @ApiModelProperty(value = "模具类型")
    @TableField("mouldType")
    private String mouldType;
    @ApiModelProperty(value = "模具重量")
    @TableField("weight")
    private String weight;
    @ApiModelProperty(value = "模具铭牌号码")
    @TableField("nameplateNumber")
    private String nameplateNumber;
    @ApiModelProperty(value = "模具所有人名称")
    @TableField("ownerName")
    private String ownerName;
    @ApiModelProperty(value = "资产厂别")
    @TableField("assetFactory")
    private String assetFactory;
    @ApiModelProperty(value = "模具所在地编号")
    @TableField("locationNumber")
    private String locationNumber;
    @ApiModelProperty(value = "模具所在地名称")
    @TableField("locationName")
    private String locationName;
    @ApiModelProperty(value = "模仁储位")
    @TableField("modelStorageLocation")
    private String modelStorageLocation;
    @ApiModelProperty(value = "模仁补充资讯")
    @TableField("modelAdditionalInformation")
    private String modelAdditionalInformation;
    @ApiModelProperty(value = "下开模单日期")
    @TableField("mouldOpenOrderDay")
    private String mouldOpenOrderDay;
    @ApiModelProperty(value = "开模日期")
    @TableField("mouldOpenDay")
    private String mouldOpenDay;
    @ApiModelProperty(value = "开模预定完成日期")
    @TableField("expectedCompletionDateOfMouldOpen")
    private String expectedCompletionDateOfMouldOpen;
    @ApiModelProperty(value = "模具保固有效截止日")
    @TableField("warrantyExpirationDate")
    private String warrantyExpirationDate;
    @ApiModelProperty(value = "射出机台盎斯数")
    @TableField("injectionMachineOunces")
    private String injectionMachineOunces;
    @ApiModelProperty(value = "押出/中空机管径数")
    @TableField("machinePipeDiameter")
    private String machinePipeDiameter;
    @ApiModelProperty(value = "安全模次数")
    @TableField("safeDesignLife")
    private String safeDesignLife;


    @ApiModelProperty(value = "报废日")
    @TableField("scrapDate")
    private String scrapDate;
    @ApiModelProperty(value = "报废原因")
    @TableField("scrapReason")
    private String scrapReason;
    @ApiModelProperty(value = "停用日")
    @TableField("deactivationDate")
    private String deactivationDate;
    @ApiModelProperty(value = "停用原因")
    @TableField("deactivationReason")
    private String deactivationReason;
    @ApiModelProperty(value = "重新启用日")
    @TableField("reactivationDay")
    private String reactivationDay;
    @ApiModelProperty(value = "插入图片说明")
    @TableField("insertImageDescription")
    private String insertImageDescription;
    @ApiModelProperty(value = "产成品用料")
    @TableField("invMaterial")
    private String invMaterial;

    @ApiModelProperty(value = "创建人编号")
    @TableField("creator")
    private String creator;

    @ApiModelProperty(value = "创建人名称")
    @TableField("creatorName")
    private String creatorName;

    @ApiModelProperty(value = "创建时间")
    @TableField("createDate")
    private String createDate;

    @ApiModelProperty(value = "修改人编号")
    @TableField("modifier")
    private String modifier;

    @ApiModelProperty(value = "修改人名称")
    @TableField("modifierName")
    private String modifierName;

    @ApiModelProperty(value = "修改时间")
    @TableField("modiDate")
    private String modiDate;

    @ApiModelProperty(value = "最后二級保养日 YYYY-MM-DD")
    @TableField("lvTwoLastMaintenanceDay")
    private String lvTwoLastMaintenanceDay;

    @ApiModelProperty(value = "最后三級保养日 YYYY-MM-DD")
    @TableField("lvThreeLastMaintenanceDay")
    private String lvThreeLastMaintenanceDay;

}
